import matplotlib.pyplot as plt
import numpy as np
x=np.linspace(-10,10,200)
y1=np.sin(x)
y2=np.cos(x)
plt.plot(x,y1,label="y=sinx",color="red")
plt.plot(x,y2,label="y=cosx",color="green")
plt.xlabel("x")
plt.ylabel("y")
plt.legend()
plt.show()
